home *** CD-ROM | disk | FTP | other *** search
/ 220 Jogos / 220 jogos.iso / classicos / resta11 / SOutlineFont.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-17  |  792 b   |  31 lines

  1. // SOutlineFont.h: Schnittstelle fⁿr die Klasse SOutlineFont.
  2. //
  3. // Copyright by AndrΘ Stein
  4. // E-Mail: stonemaster@steinsoft.net, andre_stein@web.de
  5. // http://www.steinsoft.net
  6. //////////////////////////////////////////////////////////////////////
  7.  
  8. #ifndef SOUTLINEFONT_H
  9. #define SOUTLINEFONT_H
  10.  
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif // _MSC_VER > 1000
  14.  
  15. #include "SGLFont.h"
  16.  
  17. class SOutlineFont : public SGLFont  
  18. {
  19. public:
  20.     float getHeight(const char* string);
  21.     float getWidth(const char* string);
  22.     SOutlineFont();
  23.     virtual ~SOutlineFont();
  24.     
  25.     bool createFont(HDC hDC, const char* fontname, int height, float thickness, SFontAttri attributes);
  26.     virtual void drawText(SAlign alignment, const char* string, ...);
  27. private:
  28.     GLYPHMETRICSFLOAT* infos;
  29. };
  30.  
  31. #endif